Skip to main content

Get Rectangle Of Element

Retrieves the screen rectangle (position and size) of a specified SAP GUI element.

Core Functions

  • Locates the SAP GUI element using its SAP ID
  • Extracts the element’s screen coordinates
  • Returns the element’s position and dimensions

Inputs

  • SapId: Specifies the unique SAP GUI element ID whose rectangle information will be retrieved.
    Type: String

Outputs

  • Output: Returns the rectangle information of the SAP GUI element (X, Y, Width, Height).
    Type: Object

Short Technical Summary

Obtains the screen position and size of a SAP GUI element identified by its SAP ID, commonly used for alignment checks, visual validations, or advanced UI interaction scenarios in SAP automation.